package cn.jiyun;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

//引导类，启动类
@SpringBootApplication
public class SpringBootDemoApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        //参数一：引导类类名，参数二：main方法参数
        SpringApplication.run(SpringBootDemoApplication.class, args);
    }

    //修改启动程序的入口
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(SpringBootDemoApplication.class);
    }
}
